﻿using System;
using Rsdn.SmartApp;

namespace Rsdn.Janus
{
    [ExtensionStrategyFactory]
    internal class VirtualForumStrategiesFactory : IExtensionStrategyFactory
    {
        #region IExtensionStrategyFactory Members

        ///<summary>
        /// Создает стратегии.
        ///</summary>
        public IExtensionAttachmentStrategy[] CreateStrategies(IServiceProvider provider)
        {
            var publisher = provider.GetRequiredService<IServicePublisher>();
            return new[] { new VirtualForumProviderStrategy(publisher) };
        }

        #endregion
    }
}